package com.huabo.audit.oracle.entity;

import java.math.BigDecimal;
import java.util.Date;
import java.util.Set;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.huabo.audit.config.IgnoreSwaggerParameter;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;


@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@Table(name="TBL_NBSJ_ADVICENOTE")
@ApiModel(value="审计通知书实体类对象", description="")
public class TblNbsjAdvicenoteEntity {

	public final static Integer NO_DEL=0;//未删除 使用中
	public final static Integer YE_DEL=1;//已删除 已作废
	public final static Integer SPZ=2;//审批中
	public final static Integer XTZ=3;//需调整
	public final static Integer YTG=4;//已通过
	public final static Integer YZZ=5;//已终止

	private static final long serialVersionUID = 1L;
	
	@TableId(value = "adviceid", type= IdType.AUTO)
	@ApiModelProperty(value="")
	@Id
    @GeneratedValue(strategy = GenerationType.IDENTITY,generator = "select HIBERNATE_SEQUENCE.nextval from dual")
	private BigDecimal adviceid;
	
	@ApiModelProperty(value="",hidden = true)
	@IgnoreSwaggerParameter
	@Transient
	private TblStaff tblCreater;
	
	@TableField(value = "creatrtime")
	@ApiModelProperty(value="",hidden = true)
	@IgnoreSwaggerParameter
	private Date creatrtime;
	
	@ApiModelProperty(value="",hidden = true)
	@IgnoreSwaggerParameter
	@Transient
	private TblNbsjProject project;
	
	@TableField(value = "advicecoed")
	@ApiModelProperty(value="")
	private String advicecoed;
	
	@TableField(value = "advicename")
	@ApiModelProperty(value="")
	private String advicename;
	
	@TableField(value = "PROGECTID")
	@ApiModelProperty(value="")
	private String progectid;
	
	
	
	@TableField(value = "status")
	@ApiModelProperty(value="")
	private Integer status;
	
	@TableField(value = "content")
	@ApiModelProperty(value="")
	private String content;
	
	@TableField(value = "des")
	@ApiModelProperty(value="")
	private String des;
	
	@ApiModelProperty(value="",hidden = true)
	@IgnoreSwaggerParameter
	@Transient
	private Set<TblAttachment> tblNoteAtts;
	
	@TableField(value = "CREATESTAFFID")
	@ApiModelProperty(value="",hidden = true)
	private String createstaffid;
	
}
